package com.dailyblue.example.project.bookstore.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.example.project.bookstore.commons.bean.Book;
import com.dailyblue.example.project.bookstore.commons.util.JsonResult;

public interface BookService extends IService<Book> {

    JsonResult findBook(int page);

    JsonResult removeBook(String id);

    JsonResult updateStatus(String id, int status);

    JsonResult findBookByName(String name, int page);

    JsonResult saveBook(Book book);

    JsonResult findAllPublisher();

    JsonResult findFreshAndGoodBooksLimit();

    JsonResult findFreshAndGoodBooks(int page);

    JsonResult searchFreshAndGoodBooks(String name, int page);

    JsonResult findLowPriceBooksLimit();

    JsonResult findLowPriceBooks(int page);

    JsonResult searchLowPriceBooks(String name, int page);

    JsonResult findBooksByCategoryId(String id, int page);

    JsonResult searchCategoryIdBooks(String id, String name, int page);

    JsonResult findBookById(String id);
}
